//
//  ViewController.m
//  JwSkinHub
//
//  Created by 陈警卫 on 2023/3/17.
//

#import "ViewController.h"

#import "JwSkin.h"
#import "JwSkinPColor.h"

@interface ViewController ()

@property (weak, nonatomic) IBOutlet UILabel *titleL;
@property (weak, nonatomic) IBOutlet UIImageView *iconImgV;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [JwSkinExer shared];
    kJwSkinExer.jw_colorClass = [JwSkinPColor class];
    
    self.titleL.jw_textColorKey = JwSkinPColor.jw_themeModel.key;
    self.iconImgV.jw_imageBundleKey = @"power@3x";
    
    self.view.jw_didSkinBlockAction = ^(id  _Nonnull sender) {
        
    };
}



- (IBAction)swAction:(UISwitch *)sender {
    if (sender.on) {
        [kJwSkinExer jw_setCurrentSkinKey:@"default"];
    } else {
        [kJwSkinExer jw_setCurrentSkinKey:@"dark"];
    }
}


@end
